import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectOutputStream;
import java.io.OutputStream;

public class demo6 {
    // 字节流：OutputStream
    public static void main(String[] args) throws IOException {
        try( OutputStream outputStream=new FileOutputStream("E:\\蠢阿伟\\test.txt",true)){
            String a="你好 IO";
            byte b=73;
            outputStream.write(a.getBytes());
            outputStream.write(b);
            outputStream.flush();
        }

    }
}
